]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove text mipmapping disabling
authorBilal Elmoussaoui <belmouss@redhat.com>
Tue, 20 Aug 2024 16:48:58 +0000 (18:48 +0200)
committerBilal Elmoussaoui <belmouss@redhat.com>
Thu, 22 Aug 2024 15:19:10 +0000 (17:19 +0200)
As it is now disabled by default in CoglPango as a preparation for
merging it inside libst in the future

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3451>

src/main.c

index c9a5ec2924c1751e0ba9316e8ddf91c224d72c57..b4733cc6feaa3768bb460968484932d6d6d6ddf9 100644 (file)
@@ -10,7 +10,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <cogl-pango/cogl-pango.h>
 #include <clutter/clutter.h>
 #include <glib-unix.h>
 #include <glib/gi18n-lib.h>
@@ -237,20 +236,6 @@ shell_introspection_init (void)
 #endif
 }
 
-static void
-shell_fonts_init (void)
-{
-  CoglPangoFontMap *fontmap;
-
-  /* Disable text mipmapping; it causes problems on pre-GEM Intel
-   * drivers and we should just be rendering text at the right
-   * size rather than scaling it. If we do effects where we dynamically
-   * zoom labels, then we might want to reconsider.
-   */
-  fontmap = COGL_PANGO_FONT_MAP (clutter_get_font_map ());
-  cogl_pango_font_map_set_use_mipmapping (fontmap, FALSE);
-}
-
 static void
 shell_profiler_init (void)
 {
@@ -683,7 +668,6 @@ main (int argc, char **argv)
   shell_a11y_init ();
   shell_perf_log_init ();
   shell_introspection_init ();
-  shell_fonts_init ();
 
   g_log_set_writer_func (default_log_writer, NULL, NULL);